package ejb;
import java.util.ArrayList;
import java.util.List;

import javax.ejb.Remote;

import model.Mycomment;
import model.Myuser;
import model.Target;
@Remote
public interface TargetFacadeEJBRemote {

	public ArrayList<Target> getAllTargets();
	public List<Target> getAllTargetsByRate();//sort target by number of like and return the list
	public List<Target> getAllTargetsLikedByOne(Myuser user);//return all target liked by this user
	public List<Target> getTargetByCategotyID(int CategoryID);
	public List<Mycomment> getCommentOfTarget(Target target);
	public Target getTarget();
	public ArrayList<Target> searchTarget(String input);
	public boolean checkIfExist(String username);
	public boolean checkIfExistByID(int targetid);
	public Target queryByTargetName(String name);
	public Target queryByTargetID(int tid);
	public String getResultNum(ArrayList<Target> result);
	public String getAllTargetInfo();
	public List<Target> getAllTargetsMerchantByOne(Myuser user);
		
	public List<Target> getAllTargetWithMchtInfo();
}
  
